<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .container{
      width: 100%;
      height: 800px;
      display: flex;
      justify-content: center;
      align-items: center;
      background: #e50505;
    }
    #ball{
      width: 100px;
      height: 100px;
      margin: 0 auto;
      border-radius: 50%;
      background: #462929;
      animation: bounce 0.6s infinite alternate;
      transform-origin: center bottom;
    }


    @keyframes bounce {
      0%{
        transform:scale(1.2,0.8)
      }
      100%{
        transform:scale(0.8,1.2) translateY(-200px);
        background-color: rgb(116, 254, 2);
      }
    }
  </style>
</head>
<body>
  <div class="container">
    <div id="ball"></div>
  </div>
  
</body>
</html>